<template>
  <div>
    <div
      style="
        width: 1000px;
        margin: 20px auto;
        background-color: #ffffff;
        padding: 20px;
      "
      v-html="info"
    ></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      type: 0,
      info: "",
    };
  },
  mounted() {
    this.type = this.$route.params.type;
    this.getInfo();
  },
  methods: {
    getInfo() {
      this.ajaxs("index/getContentTpText", {
        data: {
          id: this.type,
        },
        success: (res) => {
          console.log(res);
          this.info = res.msg;
        },
      });
    },
  },
};
</script>

<style scoped></style>
